#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIView.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTableCell.h>
#import <UIKit/UIPreferencesTextTableCell.h>
#import <UIKit/UIPreferencesControlTableCell.h>
#import <UIKit/UIPreferencesDeleteTableCell.h>
#import <UIKit/UISwitchControl.h>
#import <UIKit/UINavigationItem.h>
#import <UIKit/UITextField.h>
#import "ChordsApplication.h"
#import "FretBoardView.h"

@class ChordsApplication;

@interface PrefsView : UIView {
	// UINavigationBar *nav;
	ChordsApplication *app;
	
	UIPreferencesTable *table;
	
	// float initialNotationControl;
	float notationControl;
}

-(id)initWithFrame:(struct CGRect)frame;
-(void)reloadData;

//Delegate Methods
- (void)tableRowSelected:(NSNotification *)notification;
- (void)controlChanged:(UISwitchControl *)control;
- (void)navigationBar:(UINavigationBar*)navbar buttonClicked:(int)button;
- (float)getNotationControl;

//DataSource Methods
-(int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)table;
-(int)preferencesTable:(UIPreferencesTable *)table numberOfRowsInGroup:(int)group;
-(UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForGroup:(int)group;
-(UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForRow:(int)row inGroup:(int)group;

@end